package com.xsdl.observer;

public class Main {

    public static void main(String[] args) {
        ConcreteSubject subject = new ConcreteSubject();
        Observer observerOne = new ObserverOne();
        Observer observerTwo = new ObserverTwo();
        subject.registerObserver(observerOne);
        subject.registerObserver(observerTwo);
        subject.notifyObservers("Hello, observers!");
    }

}
